Skip to content

Feature/Better Animations - #53

Merged
mblomdahl merged 7 commits into
developfrom
feature/better-animations
Oct 22, 2017
Merged

mblomdahl merged 7 commits into
developfrom
feature/better-animations

Conversation

@ghost

@ghost ghost commented Oct 22, 2017

Copy link
Copy Markdown

This updates circle animation while editing, so laggy performance in Firefox will be less irritating.

@ghost ghost added the enhancement label Oct 22, 2017
@ghost
ghost requested a review from mblomdahl October 22, 2017 14:34
Comment thread lib/main.js Outdated
if (this.options.editable) {
map.addSource(this._circleHandlesSourceId, this._getHandlesMapSource());

map.addLayer(this._getCircleHandlesStrokeLayer(), before);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking it would be better adding this extra stroke layer on-demand, when the user starts interacting.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread lib/main.js
map.on('zoomend', this._onZoomEnd);

if (this.options.editable) {
map.addSource(this._circleHandlesSourceId, this._getHandlesMapSource());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably also the source layer.. And, of course, removing them when user is done interacting.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not possible, needed for handles too.

@mblomdahl
mblomdahl merged commit b2df3e5 into develop Oct 22, 2017
@mblomdahl
mblomdahl deleted the feature/better-animations branch December 10, 2017 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants